#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_SmallImageEffect0.h"
#include "UiCommon.h"

class SmallImageEffect0 : public QWidget
{
    Q_OBJECT

public:
    SmallImageEffect0(QWidget *parent = Q_NULLPTR);
        
    Effect0Info effectInfo();
    void setEffectInfo(Effect0Info info);
    void setName(QString name);
    
    int currentIndex();

signals:    
    void sigView(QStringList files);

protected slots:        
    void on_btnSelSave_clicked();

    void on_boxEffect_currentIndexChanged(int index);
    void on_btnAdd_clicked();
    void on_btnDel_clicked();
    void on_btnChg_clicked();

private:            
    void uiToEffect(BorderAddInfo &info);
    void effectToUi(BorderAddInfo info);
    void updateList();

    Effect0Info m_effects;        
    int m_preIndex;
    QString m_name;

    Ui::SmallImageEffect0Class ui;
};
